package com.szqhyxj.youxiangju.biz.partnerHome.equipment.currentRecord;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentStatePagerAdapter;

import java.util.List;

/**
 * XiaoPanYu
 * on 2018/11/20
 */
public class RecordFragmentAdapter extends FragmentStatePagerAdapter{
    private List<Fragment> fragments;

    public RecordFragmentAdapter(FragmentManager fm, List<Fragment> fragments){
        super(fm);
        this.fragments = fragments;
    }

    @Override
    public Fragment getItem(int i){
        return fragments.get(i);
    }

    @Override
    public int getCount(){
        return fragments.size();
    }
}
